﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CodeGame.Networking.Clientside;

namespace CodeGame.LuaLibary
{
    internal static class luaLib_message
    {
        [LuaHelp("Posts a Message to the Server")]
        public static void post(string subject, string content)
        {
            ClientProtocolMessage.SendMessage(subject, content);
        }

        [LuaHelp("Gets a Message from the server using a subject")]
        public static void read(string subject)
        {
            ClientProtocolMessage.GetMessage(subject);
        }

        [LuaHelp("Gets all Message Subjects on the Server")]
        public static void getAll()
        {
            ClientProtocolMessage.ListMessages();
        }

    }
}
